﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MS.InformationManagement.Core.TransactionsResponse;
using MS.InformationManagement.Core.Support;

namespace MS.InformationManagement.BLL.DocumentPrinterCommands
{
    public class GetDocumentsForPrintCommand : ICommandWithResponse
    {

        #region fields

        ITransactionResponse _documents;
        Stack<ICommand> _commands;

        #endregion

        #region Constructors

        public GetDocumentsForPrintCommand()
        {
            _documents = new PrinterDocumentsResponse();
        }
        
        #endregion

        #region Implemented Methods

        public ITransactionResponse Execute()
        {
            try
            {
                /*
                _commands = new Stack<ICommand>();
                ICommandWithResponse currentCommand = new GetNonPrintedDocumentsFromLibraryCommand();
                currentCommand.Execute();
                _commands.Push(currentCommand);*/
                return _documents;
            }
            catch (Exception ex)
            {
                Undo();
                throw ex;
            }
        }

        public void Undo()
        {
        }

        #endregion
    }
}
